package com.zsjt.app.controller;

import com.zsjt.app.compoent.exception.custom.UserNotExistException;
import org.springframework.stereotype.Controller;

@Controller
public class TestController {
    /**
     * 测试异常处理
     * @return
     */
    //@RequestMapping("/test")
    public  String test(){
        System.out.println("来");
        try{
            int i = 1/0;
        }catch (Exception e){
            throw new UserNotExistException();
        }
        return "index/main";
    }
}
